package com.nep.NEPG.service;

import com.nep.NEPG.model.SystemUser;
import com.nep.NEPG.repository.UserRepository;

public class AuthService {
    private final UserRepository userRepository;
    private SystemUser currentUser;

    public AuthService(UserRepository userRepository) {
        this.userRepository = userRepository;
    }

    public SystemUser getCurrentUser() {
        return currentUser;
    }

    public void setCurrentUser(SystemUser user) {
        this.currentUser = user;
    }

    public void logout() {
        this.currentUser = null;
    }
}